package cuongnh.project.japanesediary.vocabulary.ui.perspective;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

import cuongnh.project.japanesediary.vocabulary.ui.view.KanjiListView;

public class KanjiPerspective implements IPerspectiveFactory {

	/**
	 * The ID of the perspective as specified in the extension.
	 */
	private static final String ID = "cuongnh.project.japanesediary.vocabulary.perspectives.kanji";
	
	@Override
	public void createInitialLayout(IPageLayout layout) {
		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible(true);

		layout.addStandaloneView(KanjiListView.ID, true,
				IPageLayout.LEFT, 0.2f, editorArea);

		layout.getViewLayout(KanjiListView.ID).setCloseable(false);
	}

}
